<template>
   <div class="A">
    A组件
   </div>
</template>

<script setup lang='ts'>
// 官方 自定义hooks  
// useAttrs获取组件父传子值  useSlots插槽
import {ref ,reactive,useAttrs,useSlots} from 'vue'
let attr = useAttrs()
console.log(attr);

</script>

<style scoped>
    .A{
        width: 200px;
        height: 200px;
        border:1px solid #ccc;
    }
</style>